//
//  MoodViewController.swift
//  iPad_QQ
//
//  Created by 李善武 on 16/5/1.
//  Copyright © 2016年 李善武. All rights reserved.
//

import UIKit

class MoodViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.yellowColor()
        title = "发表说说"
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发表", style: .Plain, target: nil, action: nil)
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "取消", style: .Plain, target: self, action: "cancelBtnClick")
    }
}

extension MoodViewController{
    @objc private func cancelBtnClick(){
        print("hello")
       dismissViewControllerAnimated(true, completion: nil)
    }
}
